#ifndef MYLABEL_H
#define MYLABEL_H

#include <QFrame>
#include <QMouseEvent>
#include <QPaintEvent>
#include <QString>

class Imshow_frame : public QFrame
{
    Q_OBJECT

public:
    explicit Imshow_frame (QWidget *parent,int pos_x,int pos_y,int l_width,int l_height);
    ~Imshow_frame();
    int mouse_x=0,mouse_y=0;

protected:
    void mousePressEvent(QMouseEvent *event);
    void paintEvent(QPaintEvent *e);
    //void mousePressEvent(QMouseEvent *event);
public:
    QString frame_filename;
    bool imgshow_flag = false;


};




#endif // MYLABEL_H
